<?php

// +----------------------------------------------------------------------
// | EasyAdmin
// +----------------------------------------------------------------------
// | PHP交流群: 763822524
// +----------------------------------------------------------------------
// | 开源协议  https://mit-license.org 
// +----------------------------------------------------------------------
// | github开源项目：https://github.com/zhongshaofa/EasyAdmin
// +----------------------------------------------------------------------

namespace app\admin\model;


use app\admin\traits\ScopeUniacid;
use app\common\model\TimeModel;
use app\common\service\WeginService;

class KnscyGoods extends TimeModel
{
    // 定义全局的查询范围
    protected $globalScope = ['uniacid'];
    use ScopeUniacid;

    protected $name = "goods";

    public function getStatusList()
    {
        return ['0'=>'禁用','1'=>'启用',];
    }

    public function cate()
    {
        return $this->belongsTo('app\admin\model\GoodCategory', 'category_id', 'id');

    }

}